import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import microApp from '@micro-zoe/micro-app'
import KeycloakClient from './utils/keycloak'
const app = createApp(App)

app.use(createPinia())
app.use(router)

KeycloakClient.initKeycloak(() => {
  app.mount('#app')
  microApp.start({
    'router-mode': 'state'
  })
  microApp.setGlobalData({ keycloakClient: KeycloakClient })
})
